import Loading from './loading/index.js';
import Button from './button/index.js';
import Dropdown from './dropdown/index.js';
import Pagination from './pagination/index.js';
import Dialog from './dialog/index.js';
import Bread from './Breadcrumb/index.js';
import Switch from './switch/index.js';


// 全部注册
function install(vue) {
	[Loading, Button, Dropdown, Pagination, Dialog, Bread, Switch].forEach(component => vue.use(component));
}

export {
	Loading,
	Button,
	Dropdown,
	Pagination,
	Dialog,
	Bread,
	Switch
};

export default {
	install
}
